#include "log.h"
#include "ILayoutAwareObject.h"
#include "ILayoutObjectCollection.h"

WebAggregator::dataGrabber::ILayoutObjectCollection::ILayoutObjectCollection()
{
	FILE_LOG(logDEBUG1) << "Entry: WebAggregator::dataGrabber::ILayoutObjectCollection::ILayoutObjectCollection()";

	FILE_LOG(logDEBUG1) << "Exit: WebAggregator::dataGrabber::ILayoutObjectCollection::ILayoutObjectCollection()";
}

WebAggregator::dataGrabber::ILayoutObjectCollection::~ILayoutObjectCollection()
{
	FILE_LOG(logDEBUG1) << "Entry: WebAggregator::dataGrabber::ILayoutObjectCollection::~ILayoutObjectCollection()";

	FILE_LOG(logDEBUG1) << "Exit: WebAggregator::dataGrabber::ILayoutObjectCollection::~ILayoutObjectCollection()";
}

void WebAggregator::dataGrabber::ILayoutObjectCollection::unInitialize()
{
	FILE_LOG(logDEBUG1) << "Entry: void WebAggregator::dataGrabber::ILayoutObjectCollection::unInitialize()";

	while(!layoutAwareObjects.empty()) {
        delete layoutAwareObjects.back();
        layoutAwareObjects.pop_back();
    }

	layoutAwareObjects.clear();

	FILE_LOG(logDEBUG1) << "Exit: void WebAggregator::dataGrabber::ILayoutObjectCollection::unInitialize()";
}